'''
* This is the projet for Brtc LlmOps Platform
* @Author Leon-liao <liaosiliang@alltman.com>
* @Description //TODO 
* @File: 3_general_blob_paraser.py
* @Time: 2025/8/27
* @All Rights Reserve By Brtc
'''
from langchain_community.document_loaders.generic import GenericLoader

loader = GenericLoader.from_filesystem('.', glob="*.txt", show_progress=True)
for idx, doc in enumerate(loader.lazy_load()):
    print(f"当前加载第{idx+1}个文件, 文件信息:{doc.metadata}")